package cn.yeziji.forum.vo.settings;

import lombok.Data;

/**
 * 用户配置返回对象
 *
 * @author gzkemays
 * @since 2022/4/7 10:02
 */
@Data
public class UserSettingsVO {
  /** 是否接收私信 */
  private Boolean allowPrivate;
  /** 分享收藏夹 */
  private Boolean shareCollection;
  /** 分享上传文件 */
  private Boolean shareFile;
  /** 分享点赞夹 */
  private Boolean shareGood;

  public static UserSettingsVO defaultSettings() {
    UserSettingsVO vo = new UserSettingsVO();
    vo.setAllowPrivate(true);
    vo.setShareCollection(true);
    vo.setShareFile(true);
    vo.setShareGood(true);
    return vo;
  }
}
